
#ifndef APP_PLATE_H
#define APP_PLATE_H

#include "app_device.h"
#include "common.h"
#include "pid.h"

typedef union
{
    uint32_t flags;
    struct {
        uint32_t work:2;
        uint32_t connect:1;
    };
}plate_flag_t;

typedef struct
{
    uint16_t work_temp;
    
    plate_flag_t flag;
    __IO device_meter_t *temp;
    pid_data_t d;
}plate_t;

extern plate_t plate;
extern void task_plate(uint16_t tick);

#endif
